﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/OneColumn.Master" AutoEventWireup="true"
    CodeBehind="CreateThread.aspx.cs" Inherits="SharingCenter.Web.Mod.Talks.CreateThread"
    ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    <asp:Literal ID="Literal1" runat="server">发表新话题</asp:Literal>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <asp:ScriptManagerProxy runat="server" ID="ScriptManagerProxy1">
        <Scripts>
            <asp:ScriptReference Path="~/Mod/Talks/CreateThread.js" />
        </Scripts>
    </asp:ScriptManagerProxy>
    <div class="ctn1">
        <asp:SiteMapPath ID="SiteMapPath1" runat="server">
        </asp:SiteMapPath>
    </div>
    <h2>
        发表新话题</h2>
    <div class="formtable">
        <table cellspacing="0" width="100%">
            <tr>
                <td valign="middle">
                    标题:
                </td>
                <td>
                    <div>
                        <asp:Panel ID="pnPostIcons" CssClass="ctn2 bdr-all" BackColor="White" runat="server">
                            <asp:ListView ID="ListView1" runat="server" GroupItemCount="6">
                                <LayoutTemplate>
                                    <table>
                                        <tr runat="server" id="groupPlaceholder" />
                                    </table>
                                </LayoutTemplate>
                                <ItemTemplate>
                                    <td>
                                        <div class="posticon pointer">
                                            <asp:HiddenField ID="HiddenField1" runat="server" Value='<%#((System.Collections.Generic.KeyValuePair<string, string>)Container.DataItem).Key %>' />
                                            <asp:Image ID="Image1" ToolTip='<%#((System.Collections.Generic.KeyValuePair<string, string>)Container.DataItem).Value %>'
                                                runat="server" ImageUrl='<%#string.Format(SharingCenter.Web.Classes.WebConsts.POST_ICON_DIR+"/{0}" ,((System.Collections.Generic.KeyValuePair<string, string>)Container.DataItem).Key) %>'
                                                AlternateText='<%#((System.Collections.Generic.KeyValuePair<string, string>)Container.DataItem).Value %>' />
                                        </div>
                                    </td>
                                </ItemTemplate>
                                <GroupTemplate>
                                    <tr>
                                        <td runat="server" id="itemPlaceholder" />
                                    </tr>
                                </GroupTemplate>
                            </asp:ListView>
                        </asp:Panel>
                        <table class="nop">
                            <tr>
                                <td>
                                    <span class="posticonselect">
                                        <asp:Label ID="LinkButton1" runat="server" CssClass="pointer selecticon">
                                            <asp:Image ID="imgDefaultIcon" runat="server" />
                                        </asp:Label>
                                    </span>
                                    <ajaxctrltool:PopupControlExtender ID="PopupControlExtender1" runat="server" TargetControlID="LinkButton1"
                                        PopupControlID="pnPostIcons" Position="Bottom" BehaviorID="postIconPopup">
                                    </ajaxctrltool:PopupControlExtender>
                                </td>
                                <td>
                                    <asp:TextBox CssClass="sz-m" ID="txtTitle" runat="server" MaxLength="100" Style="width: 380px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ControlToValidate="txtTitle" ID="RequiredFieldValidator1" Display="None" SetFocusOnError="true" runat="server" ValidationGroup="new" ErrorMessage="不写主题吗？"></asp:RequiredFieldValidator>
                                    <cc:CustomValidatorCallOut runat="server" TargetControlID="RequiredFieldValidator1" PopupPosition="BottomLeft" />
                                </td>
                                <td>
                                    <asp:RadioButtonList ID="rdoType" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
                                        <asp:ListItem Text="原创" Value="1" Selected="True"></asp:ListItem>
                                        <asp:ListItem Text="转载" Value="2"></asp:ListItem>
                                        <asp:ListItem Text="贴图" Value="3"></asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    内容:
                </td>
                <td>
                     <myuc:Editor runat="server" ID="Editor1" Width="100%" Height="400" EditorType="Advanced" />
                </td>
            </tr>
        </table>
    </div>
    <div class="actionarea">
        <a rel="posticon">
            <asp:HiddenField ID="PostIcon" runat="server" />
        </a>
        <asp:LinkButton ID="InsertButton" runat="server" CssClass="addbutton" CausesValidation="True"
            Text="发表" ValidationGroup="new"  />
            <a href="Threads.aspx?c=<%=Request.QueryString["c"] %>" class="cancelbutton">取消</a>
    </div>
</asp:Content>
